package com.bone.com.dao;

import java.util.List;
import java.util.Map;

import com.bone.com.po.ComLog;
import com.bone.common.BaseIbatisDAO;
import com.bone.product.po.ProductMeta;


/**
 * DAO.
 * @author liwenzhan
 *
 */
public class ComLogDAO extends BaseIbatisDAO {

	/**
	 * 取符合查询条件的数据.
	 * @param parameter
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List<ComLog> queryComLogListByParam(ComLog comlog){
		return getSqlMapClientTemplate().queryForList("COM_LOG.queryComlogListByParam", comlog);
	}
	
	/**
	 * 
	 * @param para
	 * @return
	 */
	public ComLog queryComlogById(final Long logId){
		return (ComLog) getSqlMapClientTemplate().queryForObject("COM_LOG.selectById", logId);
	}
	
	/**
	 * 
	 * @param para
	 * @return
	 */
	public void insertComlog(ComLog comlog){
		getSqlMapClientTemplate().insert("COM_LOG.insert", comlog);
	}
	 

}
